package com.example.auth.repository;

import com.example.auth.entity.Project;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface ProjectRepository extends JpaRepository<Project, Long> {
    

    List<Project> findBySupervisorId(Long supervisorId);
    

    List<Project> findByAssigneeId(Long assigneeId);
    

    List<Project> findBySupervisorIdAndStatus(Long supervisorId, String status);

    List<Project> findByAssigneeIdAndStatus(Long assigneeId, String status);

    List<Project> findByCategory(String category);
} 